<div id="preloader"><img src="<?php echo base_url();?>img/preloader.gif"></div>
<form id="create_category_form" action="<?php echo base_url();?>category/create/" method="post" style="display: none;">
  <input type="text" name="name" placeholder="Название категории">
  <select name="parent">
    <option value="0">
      -
    </option>
    <?php foreach ($allCategory as $item):?>
    <option value="<?php echo $item->id;?>">
      <?php echo $item->name;?>
    </option>
    <?php endforeach;?>
  </select>
  <input id="submit" type="submit" value="Отправить">
</form>